/*
 * @Author: [you name]
 * @Date: 2021-10-22 14:45:18
 * @LastEditors: [you name]
 * @LastEditTime: 2021-10-25 15:05:23
 * @Description: 
 */
import request from '@/utils/request'
export default {
    namespaced: true,
    state () {
        return {
            logTime: []
        }
    },
    mutations: {
        SET_TIMES (state, payload) {
          state.logTime = payload
        }
    },
    actions: {
        async toLocalTime ({ commit }) {
          let res = await request.get('/baseLog/pageQuery', {
            params: {
              page: 1,
              pageSize: 10000
            }
          })
          // 提交突变
          commit('SET_TIMES', res.data.list.logTime)
        }
      }
}